﻿using EFCore.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SService;

namespace WMSWeb.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class WarehouselocationController : ControllerBase
    {
        private readonly WmssystemContext myDb;
        private readonly WarehouselocationS warehouselocationS;

        public WarehouselocationController(WmssystemContext myDb, SService.WarehouselocationS warehouselocationS)
        {
            this.myDb = myDb;
            this.warehouselocationS = warehouselocationS;
        }
        /// <summary>
        /// 查询全部
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public Task<List<Sys_warehouselocation>> Wqu()
        {
            return warehouselocationS.Wqu();
        }
    }
}
